"""
数据定义的类
"""
import json


class Record:
    """数据定义类"""
    def __init__(self, date: str, order_id: str, money: int, province: str):
        """
        构造方法
        :param data: 订单日期
        :param order_id:订单ID
        :param money:订单金额
        :param province:销售省份
        """
        self.date = date
        self.order_id = order_id
        self.money = money
        self.province = province

    def __str__(self):
        return json.dumps(self.__dict__, ensure_ascii=False)
